﻿@using CkSoftware.GroupMe.Sdk.TestWeb.Models
@using TwitterBootstrapMVC.Controls
@model GroupsConfigurationModel
@{
    ViewBag.Title = "Groups example";
}

<div class="page-header">
    <h1>Groups example</h1>
</div>

<p>On this page, you can configure the groups ability of the GroupMe .NET SDK.</p>

<h2>Access Token configuration</h2>
<p>First, you need to configure the GroupMe .NET SDK with a client Access Token. This token can be obtained after creating a new (or use an existing) application. Please visit <a href="https://dev.groupme.com/applications">https://dev.groupme.com/applications</a>, create a new application or select an existing application and copy the given access token at the bottom of the page.</p>

@using (FormBuilder<GroupsConfigurationModel> form = Html.Bootstrap().Begin(new Form("Configure").Type(FormType.Horizontal)))
{
    @form.ControlGroup().TextBoxFor(m => m.AuthToken).Label().LabelText("Access Token")
    @form.ControlGroup().CustomControls(Html.Bootstrap().SubmitButton())
}
